﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SMS.Reports
{
    public partial class CreditReport : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Unnamed2_Click(object sender, EventArgs e)
        {
            SMS.Business.Customer.CustomerTransactionsBusiness Bs = new Business.Customer.CustomerTransactionsBusiness();
            SMS.DAL.CutomerCreditTransaction tr = Bs.GetByID(int.Parse(Request.QueryString["ID"]));

            Report.LocalReport.SetParameters(new Microsoft.Reporting.WebForms.ReportParameter("ID",tr.ID.ToString()));
            Report.LocalReport.SetParameters(new Microsoft.Reporting.WebForms.ReportParameter("StockName",tr.Stock.Name));
            Report.LocalReport.SetParameters(new Microsoft.Reporting.WebForms.ReportParameter("Amount",tr.Credit.ToString()));
            Report.LocalReport.SetParameters(new Microsoft.Reporting.WebForms.ReportParameter("Date",DateTime.Now.ToString()));
            Report.LocalReport.SetParameters(new Microsoft.Reporting.WebForms.ReportParameter("ClientName",));
            Report.LocalReport.SetParameters(new Microsoft.Reporting.WebForms.ReportParameter("",));
        }
    }
}